<?php

namespace app\order\controller;
use app\order\logic\OrderSplitLogic;
use app\common\controller\DBase;
use app\common\controller\PCBase;
use  think\App;
class OrderSplit extends DBase
{


    /**
     * @desc     待拆分订单列表接口
     * @date     2025-04-03
     * @author   luckyXiong
     */
    public function  getList(){
        $params = $this->request->post();
        $res    = (new OrderSplitLogic())->getList($params);
        return $this->jsonMessage(200,true,'操作成功',$res);
    }



    /**
     * @desc     获取拆分订单详情接口
     * @date     2025-04-03
     * @author   luckyXiong
     */
    public function  getExplodeDetail(){
        $params = $this->request->post();
        $res    = (new OrderSplitLogic())->getExplodeDetail($params);
        return $this->jsonMessage(200,true,'操作成功',$res);
    }





    /**
     * @desc     拆单接口
     * @date     2025-04-07
     * @author   luckyXiong
     */
    public function  splitOrder(){
        $params = $this->request->post();
        $res    = (new OrderSplitLogic())->splitOrder($params);
         return $this->jsonMessage(200,true,'操作成功','');
    }


    /**
     * @desc   批量更新海外仓库存
     * @author luckyXiong
     * @date   2025-04-08
     */
    public function update_hwc(){
        $params     = $this->request->post();
       // $res        = (new OrderSplitLogic())->update_hwc($params);
        return $this->jsonMessage(200,true,'操作成功','');
    }


    /**
     * @desc   标记已处理
     * @author luckyXiong
     * @date   2025-04-14
     */
    public function update_change(){
        $params = $this->request->post();
        $res    = (new OrderSplitLogic())->update_change($params);
        return $this->jsonMessage(200,true,'操作成功','');
    }


    /**
     * @desc   导出处理
     * @author luckyXiong
     * @date   2025-04-14
     */
    public function export_info(){
        $params = $this->request->post();
        $res    = (new OrderSplitLogic())->export_info($params);
        return $this->jsonMessage(200,true,'操作成功','');
    }



    /**
     * @desc   导出主页数据处理
     * @author luckyXiong
     * @date   2025-04-14
     */
    public function export_explode_info(){
        $params = $this->request->post();
        $res    = (new OrderSplitLogic())->export_explode_info($params);
        return $this->jsonMessage(200,true,'操作成功','');
    }










}